package org.dtrd.modules.food.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.food.entity.po.DtrdExtEmsYwCookbooks;

/**
 * <p>
 * 菜谱
 * </p>
 *
 * @author QR
 * @since 2021-12-09
 */
@Getter
@Setter
@ApiModel(value = "菜谱列表信息")
public class CookbooksListInfo {

    private Integer dataId;

    @ApiModelProperty("菜品名称")
    private String cookName;

    @ApiModelProperty("菜品热量")
    private Integer cookKcal;

    @ApiModelProperty("菜品标签")
    private String cookTips;

    @ApiModelProperty("图片")
    private String cookThumb;

    public CookbooksListInfo (DtrdExtEmsYwCookbooks po) {
        dataId = po.getDataId();
        cookName = po.getCookName();
        cookKcal = po.getCookKcal();
        cookTips = po.getCookTips();
        cookThumb = po.getCookThumb();
    }
}
